package com.glodon.ggzy.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 公共资源 产权交易 中标公告表
 */
@Entity
@Table(name = "GG_CQ_ZBCJGG")
public class GgCqZbcjgg implements java.io.Serializable {

	// Fields    

	private String id;

	/**标题 */
	private String name;

	/**内容 */
	private String text;

	/**是否已发布 0未发布 1已发布 */
	private String publishStatus;

	/**发布人 */
	private String publishPerson;

	/**发布时间*/
	private Date publishDate;

	/**点击数 */
	private Double djs;

	/**联系电话 */
	private String contactTel;

	// Constructors

	/** default constructor */
	public GgCqZbcjgg() {
	}

	/** full constructor */
	public GgCqZbcjgg(String name, String text, String publishStatus, String publishPerson, Date publishDate, Double djs, String contactTel) {
		this.name = name;
		this.text = text;
		this.publishStatus = publishStatus;
		this.publishPerson = publishPerson;
		this.publishDate = publishDate;
		this.djs = djs;
		this.contactTel = contactTel;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 100)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "NAME", length = 400)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "TEXT")
	public String getText() {
		return this.text;
	}

	public void setText(String text) {
		this.text = text;
	}

	@Column(name = "PUBLISH_STATUS", length = 10)
	public String getPublishStatus() {
		return this.publishStatus;
	}

	public void setPublishStatus(String publishStatus) {
		this.publishStatus = publishStatus;
	}

	@Column(name = "PUBLISH_PERSON", length = 400)
	public String getPublishPerson() {
		return this.publishPerson;
	}

	public void setPublishPerson(String publishPerson) {
		this.publishPerson = publishPerson;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "PUBLISH_DATE", length = 7)
	public Date getPublishDate() {
		return this.publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	@Column(name = "DJS", precision = 0)
	public Double getDjs() {
		return this.djs;
	}

	public void setDjs(Double djs) {
		this.djs = djs;
	}

	@Column(name = "CONTACT_TEL", length = 100)
	public String getContactTel() {
		return this.contactTel;
	}

	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}

}
